<!--
Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
This source file is part of the Cangjie project, licensed under Apache-2.0
with Runtime Library Exception.
 
See https://cangjie-lang.cn/pages/LICENSE for license information.
-->

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>Cangjie Code Coverage Report</title>
  <style media="screen" type="text/css">
  body
{
  color: #000000;
  background-color: #FFFFFF;
}

a:link
{
  color: #000080;
  text-decoration: underline;
}
a:visited
{
  color: maroon;
  text-decoration: underline;
}
a:active
{
  color: #000080;
  text-decoration: underline;
}

td
{
  font-family: sans-serif;
}
td.title
{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
  font-size: 20pt;
  font-weight: 700;
}
td.headerName
{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  color: #000;
  padding-right: 6px;
  font-weight: 700;
  white-space: nowrap;
}
td.headerValue
{
  text-align: left;
  color: #284FA8;
  font-family: sans-serif;
  font-weight: 700;
  white-space: nowrap;
}
td.headerTableEntry
{
  text-align: right;
  color: #000;
  font-weight: 700;
  white-space: nowrap;
  padding: 0 4px 0 12px;
  background-color: #ADD8E6;
}
td.headerValueLeg
{
  text-align: left;
  color: #000;
  font-size: 0.8em;
  white-space: nowrap;
  padding-top: 2px;
}
td.hr
{
  background-color: navy;
  height:3px;
}
td.footer
{
  text-align: center;
  padding-top: 3px;
  font-family: sans-serif;
}

/* Cangjie Coverage Table Head */
td.coverTableHead
{
  text-align: center;
  color: #ffffff;
  background-color: SteelBlue;
  font-family: sans-serif;
  font-size: 1.2em;
  white-space: nowrap;
  padding: 4px 4px;
}

/* Cangjie Coverage File */
td.coverFile
{
  text-align: left;
  padding-left: 10px;
  padding-right: 20px;
  color: #000;
  background-color: #ADD8E6;
  font-family: monospace;
  font-weight: 700;
  font-size: 1.1em;
}
td.coverBar
{
  padding-left: 10px;
  padding-right: 10px;
  background-color: #ADD8E6;
}
td.coverBarOutline
{
  background-color: #ffffff;
}

/* Cangjie Coverage Value */
td.coverValue
{
  padding: 2px 10px 0 10px;
  text-align: right;
  font-family: sans-serif;
  white-space: nowrap;
  font-weight: 700;
}

/* Cangjie Coverage Link Details */
a.detail {
  font-size: 80%;
}
a.detail:link,
a.detail:visited {
  color: #B8D0FF;
}
a.detail:active {
  color: #FFFFFF;
}

.graph-container {
  /* Chart Container Style */
  color: #000;
  font-weight: 700;
  float: left;
}

.graph {
  /*Chart body style*/
  float: left;
  background-color: #fff;
  position: relative;
  width: 280px;
  padding: 0;
}

.graph .bar {
    display: block;
    position: relative;
    border: 1px solid #000;
    text-align: center;
    color: white;
    height: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    line-height: 1.9;
}

/* Cangjie Coverage Graph Bar */
.graph .bar span{
    position:absolute;
    left:1em
}

td.coveredLine,
span.coveredLine
{
    background-color: LightGreen!important;
}

td.uncoveredLine,
span.uncoveredLine
{
    background-color: LightPink!important;
}

.linebranch, .linecount
{
    border-right: 1px gray solid;
    background-color: lightgray;
}

.linebranchDetails
{
    position: relative;
}
.linebranchSummary
{
    cursor: help;
}
.linebranchContents
{
    font-family: sans-serif;
    font-size: small;
    text-align: left;
    position: absolute;
    width: 15em;
    padding: 1em;
    background: white;
    border: solid gray 1px;
    box-shadow: 5px 5px 10px gray;
    z-index: 1; /* show in front of the table entries */
}

.takenBranch
{
    color: Green!important;
    cursor: help;
}

.notTakenBranch
{
    color: Red!important;
    cursor: help;
}

.src
{
    padding-left: 13px;
}

.srcHeader,
span.takenBranch,
span.notTakenBranch
{
    font-family: "Fira Code", "Consolas", "Courier New", Courier, monospace;
    font-weight: 700;
}

pre
{
    height: 15px;
    margin: 0;
}

.lineno {
    background-color: #EFE383;
}
.lineno {
    border-right: 1px solid #BBB15F;
}
  </style>
</head>

<body>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td class="title">Cangjie Code Coverage Report</td></tr>
    <hr class="hr" />

    <tr>
      <td width="100%">
        <table cellpadding="1" border="0" width="100%">
          <tr>
            <td class="headerName">File:</td>
            <td class="headerValue">src/main.cj</td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerValue" style="text-align:right;">Hit</td>
            <td width="10%" class="headerValue" style="text-align:right;">Total</td>
            <td width="15%" class="headerValue" style="text-align:right;">Coverage</td>
          </tr>
          <tr>
            <td class="headerName">Date:</td>
            <td class="headerValue">2025-08-12 14:59:12</td>
            <td></td>
            <td class="headerName">Lines:</td>
            <td class="headerTableEntry">8</td>
            <td class="headerTableEntry">8</td>
            <td class="headerTableEntry" style="background-color:LightGreen">100.0 %</td>
          </tr>
          <tr>
            <td class="headerName">Legend:</td>
            <td class="headerValueLeg">
              <span style="background-color:LightPink">low: &lt; 75.0 %</span>
              <span style="background-color:Yellow">medium: &gt;= 75.0 %</span>
              <span style="background-color:LightGreen">high: &gt;= 90.0 %</span>
            </td>
            <td></td>
            <td class="headerName">Branches:</td>
            <td class="headerTableEntry">-</td>
            <td class="headerTableEntry">-</td>
            <td class="headerTableEntry" style="background-color:LightGreen">-</td>
          </tr>
        </table>
      </td>
    </tr>

    <hr class="hr" />
  </table>

  <br>
  <table cellspacing="0" cellpadding="1">
     <tr>
      <td width="6%" align="right" class="srcHeader">Line</td>
      <td width="6%" align="center" class="srcHeader">Branch</td>
      <td width="6%" align="center" class="srcHeader">Hit</td>
      <td width="72%" align="left" class="srcHeader src">Source</td>
    </tr>

    <tr>
<td align="right" class="lineno"><pre>1</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>2</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>3</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * This source file is part of the Cangjie project, licensed under Apache-2.0</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>4</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * with Runtime Library Exception.</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>5</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> *</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>6</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * See https://cangjie-lang.cn/pages/LICENSE for license information.</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>7</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>8</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>9</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>func func1(para: Int64): Int64 {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>10</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    if (para &gt;= 1) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>11</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        return 1</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>12</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    } else {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>13</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        return 0</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>14</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>15</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>16</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>17</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>main(): Int64 {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>18</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    func1(0)</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>19</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    func1(1)</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>20</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>21</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    return 0</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>22</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>

  </table>
  <br>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td class="hr"><td></tr>
    <tr><td class="footer">Generated by: cjcov (Version 1.0.0)</a></td></tr>
  </table>
  <br>

</body>

</html>
